<?php

/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
*/

Route::get('/', function () {
    return view('welcome');
});




Route::group(['prefix' => 'admin','middleware' => 'admin'],function ()
{
	Route::get('/',"Admin\IndexController@index");		//加载后台首页
	Route::resource('config',"Admin\ConfigController");	//加载网站配置模块
	Route::resource('comtable',"Admin\ComtableController"); //加载商品管理模块
	Route::resource('type','Admin\TypeController'); //后台商品类别管理
	Route::resource('typee','Admin\TypeeController');//后台商品类别管理2
	Route::resource("class","Admin\ClassController");// 获取商品子分类
	Route::resource("selve","Admin\SelveController");//商品下架区
	Route::resource("carousel","Admin\CarouselController"); //加载轮播图
	Route::resource("details","Admin\DetailsController");
});
